package com.wenson.behavior.state;

/**
 * @ClassName: SwitcherClient
 * @Author: luowangcheng
 * @Date: 2024/6/15 20:34
 * @Description:
 */
public class SwitcherClient {
    public static void main(String[] args) {
        Switcher s = new Switcher();
        s.switchOff(); //ERROR!!关闭状态下无需再关闭
        s.switchOn(); //OK...使灯亮
        s.switchOff(); //OK...使灯灭
        s.switchOn(); //OK...使灯亮
        s.switchOn(); //ERROR!!开启状态下无需再开启
    }
}
